package com.bdqn.ch03.sz.dao.impl;

import com.bdqn.ch03.sz.dao.NumBerDao;

public class NumBerRemainderDaoImpl implements NumBerDao {

    @Override
    public double algorithm(double a, double b) {
        if (b == 0) {
            throw new IllegalArgumentException("除数不能为0");
        } else {
            return a%b;
        }
    }
}
